package org.kjk.employee;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class EmployeeRowMapper implements RowMapper {

	@Override
	public EmployeeDTO mapRow(ResultSet rs, int rowNum) throws SQLException {
		return new EmployeeDTO(rs.getInt(1), rs.getString(2), rs.getString(3),
				rs.getString(4), rs.getString(5), rs.getDate(6),
				rs.getString(7), rs.getInt(8), rs.getInt(9), rs.getInt(10),
				rs.getInt(11));
	}

}
